package com.bh.ledger.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bh.ledger.domain.JcCostApportionment;

import java.util.List;

/**
 * 分段单据成本分摊Service接口
 *
 * @author slx
 * @date 2023-04-24
 */
public interface IJcCostApportionmentService extends IService<JcCostApportionment> {
    /**
     * 查询分段单据成本分摊
     *
     * @param id 分段单据成本分摊主键
     * @return 分段单据成本分摊
     */
    public JcCostApportionment selectJcCostApportionmentById(Long id);

    /**
     * 查询分段单据成本分摊列表
     *
     * @param jcCostApportionment 分段单据成本分摊
     * @return 分段单据成本分摊集合
     */
    public List<JcCostApportionment> selectJcCostApportionmentList(JcCostApportionment jcCostApportionment);

    /**
     * 新增分段单据成本分摊
     *
     * @param jcCostApportionment 分段单据成本分摊
     * @return 结果
     */
    public int insertJcCostApportionment(JcCostApportionment jcCostApportionment);

    /**
     * 修改分段单据成本分摊
     *
     * @param jcCostApportionment 分段单据成本分摊
     * @return 结果
     */
    public int updateJcCostApportionment(JcCostApportionment jcCostApportionment);

    /**
     * 批量删除分段单据成本分摊
     *
     * @param ids 需要删除的分段单据成本分摊主键集合
     * @return 结果
     */
    public int deleteJcCostApportionmentByIds(Long[] ids);

    /**
     * 删除分段单据成本分摊信息
     *
     * @param id 分段单据成本分摊主键
     * @return 结果
     */
    public int deleteJcCostApportionmentById(Long id);
}
